why do we get compiler warning